<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>08 vue的使用</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="app">
        {{num}}
        <button @click="add">加一</button>
    </div>
    
</body>

<script>
    new Vue({
        el:"#app",
        data:{
            num : 100,
        },
        methods:{
            add(){
                console.log(11)
                this.num++;
            }
        }
    })


</script>
</html>